package cn.itsource.ymcc.service;

import cn.itsource.ymcc.domain.CourseOrder;
import cn.itsource.ymcc.dto.CourseOrderParamDto;
import cn.itsource.ymcc.dto.PayAliNotifyDto;
import com.baomidou.mybatisplus.service.IService;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author Cherish
 * @since 2022-08-18
 */
public interface ICourseOrderService extends IService<CourseOrder> {

    String placeOrder(CourseOrderParamDto dto);

    void saveOrderAndItems(CourseOrder courseOrder);

    CourseOrder selectByOrderNo(String orderNo);


    void updateOrderByPayNotify(PayAliNotifyDto dto);

    void cancelOrderByPayTimeOut(String orderNo);

    String killPlaceOrder(CourseOrderParamDto dto);
}
